package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.SetmealDish;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

//套餐菜品关系表
@Mapper
public interface SetmealDishMapper {

    //添加套餐菜品关系
    void addBatch(List<SetmealDish> setmealDishes);

    //根据菜品id查询套餐id
    List<Long> getSetmealIdsByDishIds(List<Long> ids);

    //根据套餐id删除相关数据
    void deleteBySetmealIds(List<Long> ids);
    //起售/停售菜品
    @Select("select * from setmeal_dish where dish_id = #{id}")
    SetmealDish getSetmaelDishByDishId(Long id);
}
